home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / BoxMaker++ / Touch ƒ / touchshell.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-20  |  771 b   |  46 lines  |  [TEXT/KAHL]

  1.  
  2. class touchsettings
  3. {
  4.     public:
  5.         int whichGrain;
  6.         int whichDate;
  7. };
  8.  
  9. typedef preferences<touchsettings> touchprefs;
  10.  
  11. #pragma template preferences<touchsettings>;
  12.  
  13. class touchshell : public boxmaker, public touchprefs
  14. {
  15.     public:
  16.         touchshell( Str255 prefsFileName, touchsettings &defaultsettings);
  17.         
  18.         enum
  19.         {
  20.             kSecondButton = 1,
  21.             kMinuteButton,
  22.             kHourButton,
  23.             kHalfDayButton,
  24.             kDayButton,
  25.             kGroundZeroButton,
  26.  
  27.             kCreatDate,
  28.             kModDate,
  29.             kBothDates
  30.         };
  31.  
  32.     protected:
  33.         virtual void OpenDoc( Boolean opening);
  34.  
  35.         virtual void HandleDialogEvent( short itemHit, DialogPtr theDialog);
  36.  
  37.     private:
  38.         void ChangeGrain( int newGrain);
  39.         void ChangeDate( int newDate);
  40.  
  41.         unsigned long starting_time;
  42.         unsigned long time_to_set;
  43.         
  44.         const long *theGrains;
  45. };
  46.